<?php
namespace app\api\controller;

use think\Controller;
use app\api\service\Token as TokenService;

class BaseController extends Controller{
    //需要用户和CMS管理员都可以访问的权限
    protected function checkPrimaryScope(){
        TokenService::needPrimaryScope();
    }

    //只有用户可以访问的权限
    protected function checkExclusiveScope(){
        TokenService::needExclusiveScope();
    }
}

?>